/**
 * Created by yangxin on 2016/11/23.
 */
let routes = [{
        path: '*',
        component: resolve => { require(['pages/not-found'], resolve); }
    },
    {
        path: '/',
        redirect: '/tab-home',
        component: resolve => { require(['pages/home'], resolve); },
        children: [{
            path: '/tab-home',
            meta: { tab: true },
            component: resolve => require(['pages/tab-home'], resolve)
        }, {
            path: '/tab-my',
            meta: { tab: true },
            component: resolve => require(['pages/tab-my'], resolve)
        }]
    }
]

export default routes